import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      component: () => import("../views/Home.vue"),
      redirect: "/index",
      children: [
        {
          path: "/index",
          component: () => import("../views/Index.vue"),
        },
        {
          path: "/tinymce",
          component: () => import("../views/Tinymce.vue"),
        },
        {
          path: "/bpmn",
          component: () => import("../views/Bpmn.vue"),
        },
        {
          path: "/drawboard",
          component: () => import("../views/Drawboard.vue"),
        },
        {
          path: "/three",
          component: () => import("../views/Threepage.vue"),
        },
        {
          path: "/map",
          component: () => import("../views/Mappage.vue"),
        },
      ],
    },

    // {
    //     path: "/404",
    //     component: () => import('../views/404.vue')
    // },
    // {
    //     path: "/:pathMatch(.*)*",
    //     redirect: '/404'
    // }
  ],
});
export default router